/*
 * @Author: zhangxin 411020991@qq.com
 * @Date: 2023-04-06 09:35:28
 * @LastEditors: zhangxin 411020991@qq.com
 * @LastEditTime: 2023-04-06 10:04:48
 * @FilePath: \CIMS-V6_Frontend\main\src\components\HeaderDropdown\index.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Dropdown } from 'antd';
import  { DropDownProps } from 'antd/es/dropdown';
import React from 'react';
import { useEmotionCss } from '@ant-design/use-emotion-css';
import classNames from 'classnames';

const HeaderDropdown= ({ overlayClassName: cls, ...restProps }) => {
  const className = useEmotionCss(({ token }) => {
    return {
      [`@media screen and (max-width: ${token.screenXS})`]: {
        width: '100%',
      },
    };
  });
  return <Dropdown overlayClassName={classNames(className, cls)} {...restProps} />;
};

export default HeaderDropdown;
